/* eslint-disable import/extensions */
// eslint-disable-next-line import/extensions
// eslint-disable-next-line import/no-unresolved
// import { cloudbaseApp, development } from './cloudbase-api'
import request from "../utils/request";

// const db = cloudbaseApp().database()
// const { VSDBNAME } = development()

/**
 * 获取版本列表
 * @param limit
 * @param page
 * @param filterStr
 * @returns {Promise<GetRes>}
 */
// eslint-disable-next-line import/prefer-default-export
export async function getBbkzItem(limit, page) {
  // const skip = (page - 1) * limit
  // const count = await db.collection(VSDBNAME).count()
  // const { total } = count
  // const items = await db.collection(VSDBNAME).limit(limit).skip(skip).orderBy('update', 'desc')
  //   .get()
  // items.total = total
  // return items
}

export async function getBbkz() {
  return await request.get("/start/version/common");
}

export async function getSgbListVersion() {
  return await request.get("/start/zanmei/version");
}

export function getAppVersion() {
  return request.get("/start/appversion/new");
}
